package design_pattern;

/**
 * @Author: 蔡翔
 * @Date: 2019/10/30 21:09
 * @Version 1.0
 */
public class Work {
    public synchronized static void wokk(){
        System.out.println("现在正在跑的线程是："+Thread.currentThread().getName());
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
